package com.maykk.Demo03;

public class Persontest02 {
    public static void main(String[] args) {
        Person person = getPerson("小马", 18);
        person.eat();
    }
    public static Person getPerson(String name, int age) {
        Person person = new Person();
        person.name = name;
        person.age = age;
        return person;
    }
}
